function export_paths = export_paths(name,states,xadata,fixedparms,pref_spec,bparms)
% exports choice probabilities and beliefs for each state

for ind_goodgirl=0:1
    for ind_likeschool=0:1
        
        fixedparms.ind_goodgirl=ind_goodgirl;
        fixedparms.ind_likeschool=ind_likeschool;

        xadata.w=ones(size(xadata,1),1);
          
       	 [~,pM,pS,pS_2w,pi_global,V,Vtp1] =ex_ante_mom(states,xadata,fixedparms,pref_spec,bparms) ;
        output=[states pM pS pS_2w];

        colNames = {'age','ed','inschool','current_sch','PrMarry_low','PrMarry_high','PrSch_low','PrSch_high','PrSch_nooffer'};
        sTable = array2table(output,'VariableNames',colNames);
        hello= sprintf('../Output_New/bs_results/choiceprobs_bootstraps/%schoiceprobs_like%d_good%d.xlsx',name,ind_likeschool,ind_goodgirl);
        writetable(sTable,hello);
    
    end

        output=[states pi_global];
        colNames = {'age','ed','inschool','current_sch','Pr_LowOffer','Pr_HighOffer'};
        sTable = array2table(output,'VariableNames',colNames)
        hello= sprintf('../Output_New/bs_results/choiceprobs_bootstraps/%sbeliefs_good%d.xlsx',name,ind_goodgirl);
        writetable(sTable,hello)

end

end